package com.rcpcompany.examples.flows.internal;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		layout.setEditorAreaVisible(false);
		layout.addView("com.rcpcompany.examples.flows.views.Selector", IPageLayout.LEFT, 1.0f, layout.getEditorArea());
		layout.addView("com.rcpcompany.examples.flows.views.FlowView", IPageLayout.RIGHT, 0.5f,
				"com.rcpcompany.examples.flows.views.Selector");
		
		layout.getViewLayout("com.rcpcompany.examples.flows.views.Selector").setCloseable(false);
		layout.getViewLayout("com.rcpcompany.examples.flows.views.FlowView").setCloseable(false);
	}
}
